package example.lec06.glut;

import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyAspect {
    @Pointcut("execution(* example.lec06.glut..*.*(..))")
    public void myPointCut(){
    }
    @Before("myPointCut()")
    public void beforeMethod()
    {
        System.out.println("beforeMethod");
    }
    @After("myPointCut()")
    public void afterMethod()
    {
        System.out.println("afterMethod");
    }
}
